package com.pub.service;

import com.pub.entity.Book;
import com.pub.entity.Press;
import com.pub.mapper.PressDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PressService {
    @Autowired
    PressDao pressDao;

    public List<Book> FindAllBookBypname(String pname){
        return pressDao.FindAllBookByPname(pname);
    }
    public Book FindBookInform(String name){
        return pressDao.FindAllBookByPnamekinf(name);
    }
    public Book FindBookInformaexpname(String name){
        return pressDao.FindBookinfexpname(name);
    }
    public List<Press> FindAllPress(){
        return  pressDao.FindAllPress();
    }
}
